package secretaryGUI;

import com.sun.rowset.CachedRowSetImpl;
import basic.ClientConsole;
import flexibility.userData;
import guiCode.secretaryScreenCode;

public class viewAssiginingErrorLog {
//this will present the error log in the lower table
	private userData viewErrors = new userData();
	private updateLowerTableEntries ULTE = new updateLowerTableEntries();
	private secretaryScreenCode ssc;
	
	public void viewErrorLog(ClientConsole secretaryConnection,CachedRowSetImpl crs, secretaryScreenCode code, createSecretaryWindow csw){
		ssc = code;
		
		viewErrors.deleteAll();
		viewErrors.addData(243);
		viewErrors.addData(1);
		viewErrors.addData(ssc.getLastAssigningErrorLog());
		secretaryConnection.acceptMsg(viewErrors);
		crs = secretaryConnection.getResults();
		
		ULTE.update(csw, crs);
	}
}
